package com.itce.arco.practicenote.day01.practice2;

public class Person {
    String name;
    int age;
    String address = "北京";
//    无参构造
    public Person () {
        System.out.println("父类的无参构造执行了");
    }
//    有参构造
    public Person (String name, int age) {
        System.out.println("父类的有参构造执行了");
    }
    public void show () {
        System.out.println("姓名：" + name + ",年龄：" + age);
    }
}
